﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../../layui/css/layui.css">
    <title>添加曲线</title>
</head>

<body>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>添加曲线</legend>
    </fieldset>
    <form class="layui-form" action="" lay-filter="example">

        <div class="layui-form-item">
            <label class="layui-form-label">模板类型</label>
            <div class="layui-input-block" style="width:160px">
                <select name="Modeltype" lay-filter="Modeltype">
                    <option value="1">深度</option>
                    <option value="2">时间</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">曲线名称</label>
            <div class="layui-input-block" style="width:160px">
                <select id="ident" name="ident" class="from-control" lay-filter="ident"></select>
            </div>
        </div>

        <div id="con" style="display: none;">
            <div id="non">
                <input type="text" id="hd1" hidden value="">
                <input type="text" id="hd2" hidden value="">
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">曲线别名</label>
                <div class="layui-input-inline">
                    <input type="text" id="name2" name="left" lay-verify="title" autocomplete="off" placeholder="请输入值"
                        class="layui-input" style="width:160px">
                </div>

                <label class="layui-form-label">单位</label>
                <div class="layui-input-inline">
                    <input type="text" id="unit" name="left" lay-verify="title" autocomplete="off" placeholder="请输入值"
                        class="layui-input" disabled style="width:160px">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">左侧值</label>
                <div class="layui-input-inline">
                    <input type="text" id="left" name="left" lay-verify="title" autocomplete="off" placeholder="请输入值"
                        class="layui-input" onKeyUp="this.value=this.value.replace(/[^\.\d]/g,'');" style="width:160px">
                </div>

                <label class="layui-form-label">右侧值</label>
                <div class="layui-input-inline">
                    <input type="text" id="right" name="right" lay-verify="title" autocomplete="off" placeholder="请输入值"
                        class="layui-input" onKeyUp="this.value=this.value.replace(/[^\.\d]/g,'');" style="width:160px">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">选择线形</label>
                <div class="layui-input-inline" style="width:160px">
                    <select id="linear" name="linear" class="from-control" lay-filter="linear">
                        <option value="0">实线</option>
                        <option value="1">虚线</option>
                        <option value="2">点线</option>
                        <option value="3" selected>实线(粗)</option>
                        <option value="4">虚线(粗)</option>
                        <option value="5">点线(粗)</option>
                    </select>
                </div>

                <label class="layui-form-label" style="margin-left: 30px;">显示方式</label>
                <div class="layui-input-inline" style="width:160px">
                    <select id="way" name="way" class="from-control" lay-filter="way">
                        <option value="0">正常显示</option>
                        <option value="1">备份显示</option>
                        <option value="2">阈值显示</option>

                    </select>

                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">小数点位数</label>
                <div class="layui-input-inline">
                    <input type="number" id="num" name="num" lay-verify="num" autocomplete="off" placeholder="请输入值"
                        class="layui-input"
                        onKeyUp="this.value=this.value.replace(/[^\.\d]/g,'');this.value=this.value.replace('.','');"
                        style="width:160px" value="2">
                </div>

                <div class="layui-input-inline" style="width:160px; margin-left: 30px;">
                    <input type="checkbox" name="chk" id="chk" title="阶梯状显示" lay-filter="chk" checked>

                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">颜色选择</label>
                <input type="text" value="" name="color" placeholder="请选择颜色" class="layui-input" id="test-form-input"
                    style="width: 120px; margin-left: 30px; " disabled="disabled">
                <div id="test-form" style="margin-top:-50px; margin-left:230px"></div>
            </div>
        </div>

    </form>
</body>

<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="../../jquery-3.0.0.min.js"></script>
<script type="text/javascript" src="../../layui/public.js"></script>
<script type="text/javascript" src="../Depthjs/Addcurve.js"></script>
<script type="text/javascript">



</script>

</html>